<?php $this->doctype();
?>
<html>
    <head>
        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title>He Thong Quan Ly Ban Hang</title>
        <link href="<?php echo $this->baseUrl . '/public/' . $this->module; ?>/css/screen.css" rel="stylesheet" type="text/css" media="screen" />
        <link href="<?php echo $this->baseUrl . '/public/' . $this->module; ?>/css/style.css" rel="stylesheet" type="text/css" media="screen" />
        <link href="<?php echo $this->baseUrl . '/public/' . $this->module; ?>/css/grid.css" rel="stylesheet" type="text/css" media="screen" />
        <link href="<?php echo $this->baseUrl . '/public/' . $this->module; ?>/css/jscal2.css" rel="stylesheet" type="text/css" media="screen" />
        <link href="<?php echo $this->baseUrl . '/lib/dbtreeview/treeview.css' ?>" rel="stylesheet" type="text/css" media="screen" />
        <script type="text/javascript" src="<?php echo $this->baseUrl . '/public/admin' ?>/js/jquery-1.9.1.min.js"></script>
        <script type="text/javascript" src="<?php echo $this->baseUrl . '/public/' . $this->module; ?>/js/main.js"></script>        
        <script type="text/javascript" src="<?php echo $this->baseUrl . '/public/' . $this->module; ?>/js/jscal2.js"></script>
        <script type="text/javascript" src="<?php echo $this->baseUrl . '/public/' . $this->module; ?>/js/en.js"></script>
        <script type="text/javascript" src="<?php echo $this->baseUrl . '/lib/dbtreeview/treeview.js' ?>"></script>
        <?php include_once 'login.phtml'; ?>
    </head>
    <body>
        <div id="wrapper">
            <div id="header-wrapper">
                <div id="header" class="container">
                    <div id="logo">
                        <h1><a href="<?php echo $this->baseUrl .'/index' ?>">Stempower</a></h1>
                    </div>
                    
                    
                    <div class="menu-reg">
                        <ul>
                         <?php
                            if ($this->isAdminLogin || $this->isInputLogin || $this->isGuestLogin) {
                                echo '<li><a href="#"><span>Hello ' . $this->profileNameSpace['fullname'] . '</span></a></li>';
                                echo '<li><a href="' . $this->baseUrl . '/default/index/logout"><span>Đăng xuất</span></a></li>';
                            } else {
//                                echo '<li><a href="' . $this->baseUrl . '/dangnhap"><span>Đăng nhập</span></a></li>';
//                                echo '<li><a href="' . $this->baseUrl . '"><span>Register</span></a></li>';
                            }
                            ?>
                        </ul>
                    </div>
                    
                    
                    <div class="cssmenu">
                        <ul>                            
                            <?php
                            
                            if ($this->isGuestLogin || $this->isAdminLogin) {
                                echo '<li class="has-sub"><a href="#">Khách hàng</a>';
                                echo '<ul>';
                                echo '<li><a href="' . $this->baseUrl . '/default/tracuu"><span>Tra cứu</span></a></li>';
                                echo '</ul>';
                                echo '</li>';
                            }
                            
                            if ($this->isAdminLogin || $this->isInputLogin) {
                                echo '<li class="has-sub"><a href="' . $this->baseUrl . '/default/donhang">Nhập liệu</a>';
                                echo '<ul>';
                                echo '<li><a href="' . $this->baseUrl . '/default/donhang"><span>Nhập đơn hàng</span></a></li>';
                                echo '<li><a href="' . $this->baseUrl . '/default/nhapdaily"><span>Nhập khách hàng</span></a></li>';
                                echo '</ul>';
                                echo '</li>';
                            }		
                            
                            
                            if ($this->isAdminLogin) {
                                echo '<li class="has-sub"><a href="' . $this->baseUrl . '/default/tracuutongquat">Quản lý</a>';
                                echo '<ul>';
                                echo '<li><a href="' . $this->baseUrl . '/default/thongkekhachhang"><span>Thống kê khách hàng</span></a></li>';
                                echo '<li><a href="' . $this->baseUrl . '/default/tracuutongquat"><span>Thông tin tổng quát</span></a></li>';
                                echo '<li><a href="' . $this->baseUrl . '/default/loctheodonhang"><span>Lọc theo đơn hàng</span></a></li>';
                                echo '</ul>';
                                echo '</li>';
                            }
                            ?>
                        </ul>
                    </div>

                    <div class="cssmenu menu-bottom">
                        <ul>

                        </ul>
                    </div>
                </div>
            </div>

            <!-- end #header -->
            <div> 

                <?php echo $this->layout()->content; ?>
            </div>
        </div>
        <div id="footer">
            <p>CÔNG TY TNHH TM-DV BW2</p>
            <p>HOTLINE: 08.6681.6991-08.6681.6992</p>
            <p>Đia chỉ:90c C/c tân phú- Nguyễn Sơn-F.Phú Thọ Hòa-Q.Tân Phú</p>
            <p>Copyright (c) 2013 - Developed by BW2</p>
        </div>
        <!-- end #footer -->
    </body>
</html>
